package com.bunnyhsu.service.impl;

import com.bunnyhsu.mapper.UserMapper;
import com.bunnyhsu.model.User;
import com.bunnyhsu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/6/22.
 */
@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUser(int id) {
        return userMapper.selectUser(id);
    }

    @Override
    public List<User> selectAll() {
        return userMapper.selectAll();
    }
}
